package com.tbit.uqbike.webmanager.dao.core;

import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface GeoReMachineDao {

    Integer getRegionId(Integer machineId);

    /**
     * 查询今天之前的各分区车辆数
     *
     * @param time
     * @return
     */
    @MapKey("regionId")
    Map<Integer, Map> queryCountGroupByRegion(@Param("time") Date time);

    /**
     * 批量删除
     * @param machineIds
     */
    void deleteByMachineIds(@Param("machineIds")List<Integer> machineIds);
}
